﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VISS.API.Users;

namespace VISS.Web.Frontend.Modules.User.Profile {

    public partial class ImageListBoxControl : System.Web.UI.UserControl {

        public List<UserImageEnt> ImageList;
        public int ImageCount;
        public string UserKey = string.Empty;
        public string UserName = string.Empty;
        protected string Paging = string.Empty;

        protected void Page_Load(object sender, EventArgs e) {
            Paging pager = new Paging(ImageCount);
            pager.PerPage = AppSettings.PageSizeOfImage;
            string queryString = AppSettings.RootURL + "profile/images";
            
            pager.QueryString = queryString;
            pager.Param = "page";
            pager.DisplayParam = "p";
            pager.ShowMore = false;
            pager.LinkFormatTemplate = "<div class=\"page\">{0}</div>";
            pager.SelectedPageFormatTemplate = "<div class=\"page selected-page\">{0}</div>";

            Paging = pager.BuildPaging();
        }
    }
}